import request from '@/utils/request'

// 查询环保事故列表
export function listOpmEnvAccident(query) {
  return request({
    url: '/environment/opmEnvAccident/list',
    method: 'get',
    params: query
  })
}

// 查询环保事故详细
export function getOpmEnvAccident(id) {
  return request({
    url: '/environment/opmEnvAccident/' + id,
    method: 'get'
  })
}

// 新增环保事故
export function addOpmEnvAccident(data) {
  return request({
    url: '/environment/opmEnvAccident',
    method: 'post',
    data: data
  })
}

// 修改环保事故
export function updateOpmEnvAccident(data) {
  return request({
    url: '/environment/opmEnvAccident',
    method: 'put',
    data: data
  })
}

// 删除环保事故
export function delOpmEnvAccident(id) {
  return request({
    url: '/environment/opmEnvAccident/' + id,
    method: 'delete'
  })
}
